/*
 * main.cc
 * wordt nauwelijks gebruikt
 *
 *  Created on: 11 mrt. 2011
 *      Author: vincentvanandel, Jonathan Eenkhoorn, Sander Schulenburg
 */
#include <stdio.h>
#include "main.h"
int main()
{
	FileSystem *ptr;
	OpenFile *file;
	OpenFile *file2;
	OpenFile *file3;
	char buffer[30];
	ptr = new FileSystem("File");
	file = ptr->open("test");
	ptr->read(file, buffer, 30);
	printf("\n--------------------------\n");
	memset(buffer, 0, 30);
	file3 = ptr->open("Inode.cc");
	ptr->read(file3, buffer, 30);
	printf("\n--------------------------\n");
	ptr->lseek(file, 10 , SEEK_SET);
	ptr->write(file, buffer, 30);
	memset(buffer, 0, 30);
	printf("\n--------------------------\n");
	ptr->read(file3, buffer, 30);
	printf("%d",ptr->lseek(file3, 0, 30));
	printf("\n--------------------------\n");
	return 0;
}
